package com.nur.dao;

import android.content.Context;

import com.nur.dal.Conexion;

public abstract class Dao<E> {
	
	protected E dto;
	
	public Dao(Context context){
		Conexion.initInstance(context);
	}
	
	public abstract void insertar() throws Exception;
	
	public abstract void update() throws Exception;
	
	public abstract void delete() throws Exception;
	
	public abstract E select(int id);
	
	public void setObject(E obj){
		this.dto = obj;
	}
	
	public E getObject(){
		return dto;
	}
	
}
